
		<?php 
		error_reporting(E_WARNING);
		include("cabecalho.php");
		include_once("includes/metodos.php");
		
		connectSQL();
		if(empty($_REQUEST['qnt'])){
			$qnt = 2;
		}else{
			$qnt = $_REQUEST['qnt'];
		}
		?>
<body>
		<div id="conteudo_multimidia">
		<?php include ("col_dir.php");?>
		 <div id="meio_multimidia">
			<div id="videos_multimidia">
			   <div id="estiloIE_multimedia">
			   	<label id="label_multi_resultado">Quantidade de resultado por p&aacute;gina</label>
				<form action="multimidia.php" method="get">
					<select id="select_video_multi" name="qnt">
						<option value="2" <?php if($_REQUEST['qnt']==2){echo 'selected="selected"';} ?>>2</option>
						<option value="4" <?php if($_REQUEST['qnt']==4){echo 'selected="selected"';} ?>>4</option>
						<option value="6" <?php if($_REQUEST['qnt']==6){echo 'selected="selected"';} ?>>6</option>
					</select>
					<input type="submit" value="Executar"/>
				</form>
			   </div>
			</div>
		   <div id="cabecalho_multimidia"><br>
		      
		      <?php
				$targetpage = "multimidia.php";
		   		$tableName = "econ_multimidia";
		   		$ordem = 'WHERE status=1 ORDER BY id DESC';
		   		
		   		if(!empty($_REQUEST['qnt'])){
		   			$limit = $_REQUEST['qnt'];
		   			include_once 'paginacao/index2.php';
		   		}else{
		   			$limit = 2;
		   			include_once 'paginacao/index.php';
		   		}
		   		echo '<div id="paginate1"><label style="font: italic bold 12px arial,helvetica,sans-aerif;margin:0 0 15px 0;">'.$total_pages.' Resultados</label></div>';
		   		echo '<div style="text-align:center;">'.$paginate.'</div>';
				$cont = 1;
				while($row = mysql_fetch_array($result)){
					if($cont == 1){
						echo '<div id="video'.$cont.'">';
							echo '<h5>'.$row['titulo'].'</h5>';
							echo '<iframe style="margin:9px 0 0 0;" width="280px" height="225px" src="http://www.youtube.com/embed/'.$row['link'].'" frameborder="0" allowfullscreen></iframe>';
							echo '<h5 id="desc_video">'.$row['descricao'].'</h5>';
						echo '</div>';
						$cont = 2;
					}else{
						echo '<div id="video'.$cont.'">';
							echo '<h5>'.$row['titulo'].'</h5>';
							echo '<iframe style="margin:9px 0 0 0;" width="280px" height="225px" src="http://www.youtube.com/embed/'.$row['link'].'" frameborder="0" allowfullscreen></iframe>';
							echo '<h5 id="desc_video">'.$row['descricao'].'</h5>';
						echo '</div>';
						$cont = 1;
					}
				}
		      ?>
		      
		   </div>
		   <?php 
				echo '<div id="paginate1"><label style="font: italic bold 12px arial,helvetica,sans-aerif;margin:0 0 15px 0;">'.$total_pages.' Resultados</label></div>';
				echo '<div style="text-align:center;">'.$paginate.'</div>';
			?>
		</div>
		<div id="migalhasdepao">
		<h1 id="home_migalha"><a href="index.php"><img border="0" src="img/home_migalha.png"></a></h1><label id="label_migalha">multimidia</label><h1 style="float:left;"><img src="img/migalha_bordas.png"></h1>
		</div>
		<div id="divclear"></div> 
		<br>
		 <?php include 'rodape.php';?>
		</div>
</body>
</html>